package com.ykq.controller;

import com.ykq.service.MenuService;
import com.ykq.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-vue
 * @description:
 * @author: 闫克起2
 * @create: 2021-12-31 11:22
 **/
@RestController
@RequestMapping("menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("leftMenu")
    public CommonResult leftMenu(){
         return menuService.findLeftMenu();
    }
}
